package com.visionet.waveletData.web.vo.business;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.visionet.waveletData.web.common.utilities.MessageSourceHelper;
import com.visionet.waveletData.web.common.utilities.time.DateUtil;
import com.visionet.waveletData.web.entity.JsonDateSerializer;
import com.visionet.waveletData.web.vo.BaseVo;


public class RemindVo extends BaseVo {
	
	private static final long serialVersionUID = -572007938429900803L;
	private Long sendId;
	private String sendName;
	private Long receiverId;
	private Integer type;
	private String description;
	private String linkHtml;
	private String assistContent;
	private Date createDate;
	private Integer unread;
	private String annexation;
	//详细分类
	private Integer subclass;
	//引用资源的Id
	private Long refId;
    private Long titleId;
	
	public Long getTitleId() {
		return titleId;
	}

	public void setTitleId(Long titleId) {
		this.titleId = titleId;
	}

	public String getSendTime(){
		if(createDate == null){
			return "unknown";
		}
		return DateUtil.convertToString(createDate, MessageSourceHelper.GetMessages("app.entity.business.Remind.ymd"));
	}
	
	public Long getSendId() {
		return sendId;
	}
	public void setSendId(Long sendId) {
		this.sendId = sendId;
	}
	public String getSendName() {
		return sendName;
	}
	public void setSendName(String sendName) {
		this.sendName = sendName;
	}
	public Long getReceiverId() {
		return receiverId;
	}
	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getLinkHtml() {
		return linkHtml;
	}
	public void setLinkHtml(String linkHtml) {
		this.linkHtml = linkHtml;
	}
	public String getAssistContent() {
		return assistContent;
	}
	public void setAssistContent(String assistContent) {
		this.assistContent = assistContent;
	}
	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Integer getUnread() {
		return unread;
	}
	public void setUnread(Integer unread) {
		this.unread = unread;
	}
	public String getAnnexation() {
		return annexation;
	}
	public void setAnnexation(String annexation) {
		this.annexation = annexation;
	}
	public Integer getSubclass() {
		return subclass;
	}
	public void setSubclass(Integer subclass) {
		this.subclass = subclass;
	}
	public Long getRefId() {
		return refId;
	}
	public void setRefId(Long refId) {
		this.refId = refId;
	}
//	public String getUserImgUrl() {	//用户头像url
//		return UserInfoService.getUserImgUrl(this.sendId);
//	}

}
